package eventplanner.entities;

import java.util.Calendar;
import java.util.Date;

public class EventTestUtil {

	public static final String SIMPLE_EVENT_TITLE = "Test Event Title";
	public static final String SIMPLE_EVENT_DESCRIPTION = "Test Event Description";
	public static final Date SIMPLE_EVENT_START_DATE;
	public static final Date SIMPLE_EVENT_END_DATE;

	static {
		Calendar calendar = Calendar.getInstance();
		calendar.add(1, Calendar.HOUR);
		SIMPLE_EVENT_START_DATE = calendar.getTime();
		calendar.add(3, Calendar.HOUR);
		SIMPLE_EVENT_END_DATE = calendar.getTime();
	}

	public static Event createValidSimpleEvent() {
		Event event = new Event();
		event.setTitle(SIMPLE_EVENT_TITLE);
		event.setStart(SIMPLE_EVENT_START_DATE);
		event.setEnd(SIMPLE_EVENT_END_DATE);
		event.setDescription(SIMPLE_EVENT_DESCRIPTION);
		return event;
	}
}
